<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //let game = prompt('买几件衣服？');
        /* 
        for循环四要素
        1. 初始化条件
        2.判断条件
        3.变化条件
        4。循环体
        */
        /*      for (i = 0; i < 5; i++) {
                 console.log('我要买衣服');
     
             }
             console.log(game); */


        for (i = 1; i < 10; i++) {
            let star = ' ';
            for (j = 1; j < i + 1; j++) {
                star = star + (i + '*' + j + '=' + i * j + ' ');
            }
            console.log(star);
        }

    </script>
</body>

</html>